<%@page import="com.dein.broadcast.model.Broadcast"%>
<%@page import="com.dein.music.model.Music"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	Broadcast broadcast = (Broadcast) request.getAttribute("broadcast");
	List<Music> broadcastMusicList = broadcast.getBroadcastMusicList();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'admin_broadcastMusicList.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/pages/admin.css">


</head>

<body>

	<div class="layer">

		<div class="logo">
			<span id="dein">Dein.fm</span> <span id="welcome">欢迎，XXX</span>
			<div class="exitBtn"></div>
		</div>

		<div class="manu">
			<a href="page/admin_index" style="color:pink"><div class="home">首页</div></a>
			<div class="guideBtn">管理我的电台</div>
			<hr>
			<div class="Box">

				<div class="newBox">
					<p>电台详情</p>
					<br />
					<form>
						<li><intput type="hidden"
								value="<%=broadcast.getBroadcastId()%>" id="broadcastId">*
							电台名称:&nbsp;<input type="text" style="color: #33CC99"
								value=" <%=broadcast.getBroadcastName()%>"></li> <br />
						<li>* 电台歌单:
							<button>添加音乐</button>
						</li> <br />
						<form>
							<%
								for (int i = 0; i < broadcastMusicList.size(); i++) {
									Music music = broadcastMusicList.get(i);
							%>
							<li>&nbsp;<%=i + 1%>, <%=music.getSinger()%> - <%=music.getMusicName()%><button
									class="del" style="left:40%">删除</button> <input type="hidden"
								value="<%=music.getMusicId()%>"></li> <br />
							<%
								}
							%>


							<br />

						</form>
						<br />
						<button>
							<a style="color:white">&nbsp;删除电台&nbsp;</a>
						</button>
					</form>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript" src="js/frame/jquery-1.6.4.min.js"></script>
	<script type="text/javascript" src="js/admin.js"></script>
</body>
</html>
